/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Marcela
 */
@ManagedBean(name = "seleccionproducctosubicacionController")
@SessionScoped
public class seleccionproducctosubicacionController {

    private String[] selectedProducts;
    private String[] selectedShopping;
    private List<String> products;
    private List<String> shopping;

    @PostConstruct
    public void init() {
        products = new ArrayList<String>();
        products.add("Aceite");
        products.add("Jabon");
        products.add("Shampoo");
        products.add("Pasta dentalHuevos");
        products.add("Berlin");
        products.add("Barcelona");
        products.add("Rome");
        products.add("Sao Paulo");
        products.add("Amsterdam");
        
        shopping= new ArrayList<String>();
        shopping.add("Metro Centro 8tava");
        shopping.add("Metro Centor");
        shopping.add("Metro Sur");
        shopping.add("Los Heroes");
        shopping.add("Los Angeles");
        shopping.add("Los Santos");
    }

    public List<String> getProducts() {
        return products;
    }

    public String[] getSelectedProducts() {
        return selectedProducts;
    }

    public void setSelectedProducts(String[] selectedProducts) {
        this.selectedProducts = selectedProducts;
    }

    public String[] getSelectedShopping() {
        return selectedShopping;
    }

    public void setSelectedShopping(String[] selectedShopping) {
        this.selectedShopping = selectedShopping;
    }

    public List<String> getShopping() {
        return shopping;
    }

    public void setShopping(List<String> shopping) {
        this.shopping = shopping;
    }
}
